package com.millstein.eduservice.mapper;

import com.millstein.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.millstein.eduservice.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-15
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 发布前查询课程相关的信息
     * @param courseId
     * @return
     */
    CoursePublishVo getPublishCourseInfo(@Param("courseId") String courseId);
}
